<?php

namespace App\Models;

use App\ModelFilters\QuestionsFilter;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Questions extends BaseModel
{
    protected $table = 'tiku_questions1';
    public const CREATED_AT = null;
    public const UPDATED_AT = null;

    public function modelFilter(): ?string
    {
        return $this->provideFilter(QuestionsFilter::class);
    }

    public function course(): BelongsTo
    {
        return $this->belongsTo(Course::class, 'courseId');
    }

    public function knowledge(): BelongsTo
    {
        return $this->belongsTo(Knowledge::class, 'thirdKnowledgeId');
    }
}
